package com.ken.app_manager.core;

import com.ken.app_manager.base.OnBaseCallback;

/**
 * 异常处理类
 */
public class DataAccessException extends RuntimeException {

    public DataAccessException(String message) {
        super(message);
    }

    public DataAccessException(String message, OnBaseCallback callback, Throwable cause) {
        super(message, cause);
        System.out.println("DataAccessException异常捕获:" + message);
        System.out.println(cause);
        callback.onError(500,cause.getMessage());
    }
}
